//package com.seata.cloud.config;
//
//import com.alibaba.druid.pool.DruidDataSource;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
///**
// * @author wangyabin
// * @date 2021/12/3 15:03
// */
//@Configuration
//public class DBConfig {
//
//    @Autowired
//    private DataSourceConfig dataSourceConfig;
//
//    @Value("${mybatis.mapperLocations}")
//    private String mapperLocations;
//
//    @Bean
//    public DataSource druidDataSource(){
//        DruidDataSource druidDataSource = new DruidDataSource();
//        druidDataSource.setDriverClassName(dataSourceConfig.getDriveClassName());
//        druidDataSource.setUrl(dataSourceConfig.getUrl());
//        druidDataSource.setUsername(dataSourceConfig.getUsername());
//        druidDataSource.setPassword(dataSourceConfig.getPassword());
//        return druidDataSource;
//    }
//
//}
